<template>
  <div
    class="nav-handle-page"
    style=""
    @click="toggleClick"
  >
    <i class="hamburger icon iconfont icongengduo"></i>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false,
    },
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick');
    },
  },
};
</script>

<style lang="scss" scoped>
@import "~@/styles/variables.scss";

.nav-handle-page {
  width: 50px;
  height: 50px;
  padding-left: 15px;
  line-height: 50px;
  transition: all 0.5s;
  color: $menuText;
  cursor: pointer;
  .hamburger {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
  }
  .hamburger.is-active {
    transform: rotate(180deg);
  }
  &:hover {
    background-color: #f2f2f2;
    // color: $menuHover;
  }
}
</style>
